package com.wandian.news.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.news.R;
import com.wandian.news.bean.LifeConstellationBean;


/**
 * @author Administrator
 * @date 2019/12/16-13:32
 * @description 适配器
 **/
public class LifeConstellationRecycleAdapter extends BaseQuickAdapter<LifeConstellationBean.NewslistEntity, BaseViewHolder> {

    public LifeConstellationRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper,LifeConstellationBean.NewslistEntity item) {
        TextView tv_title_name = helper.getView(R.id.tv_title_name);
        TextView tv_title_content = helper.getView(R.id.tv_title_content);
        tv_title_name.setText(item.getType()+"：");
        tv_title_content.setText(item.getContent()+"");
    }


}
